package work1;

public class Test {
	public static void main(String[] args) {
		Student Stu1 = new Student("小张", 2021310900 ,"Java实验室","电路分析", 0);
		Student Stu2 = new Student("小李", 2021310901 ,"大学物理实验室","大数据科学与技术实验室", 0);
		Student Stu3 = new Student("小赵", 2021310902 ,"模拟电路实验室","", 0);
		System.out.println("学生信息：");
		System.out.println(Stu1);
		System.out.println(Stu2);
		System.out.println(Stu3);
		Lab L1 = new Lab("Java实验室","优秀");
		Lab L2 = new Lab("电路分析实验室","及格");
		Lab L3 = new Lab("大学物理实验室","优势");
		Lab L4 = new Lab("模拟电路实验室","优秀");
		Lab L5 = new Lab("大数据科学与技术实验室","不及格");
		try {
			double r1 = Yichang.sum(200,150);
			System.out.println("小张一周的收入为:" + r1);
			Stu1.buzhushouru = r1;
			Stu1.buzhushouru = Stu1.buzhushouru*18;
			double r2 = Yichang.sum(200,100);
			System.out.println("小李一周的收入为:" + r2);
			Stu2.buzhushouru = r2;
			Stu2.buzhushouru = Stu2.buzhushouru*18;
			double r3 = Yichang.sum(200,0);
			System.out.println("小赵一周的收入为:" + r3);
			Stu3.buzhushouru = r3;
			Stu3.buzhushouru = Stu3.buzhushouru*18;
			System.out.println("小张的总收入为：" + Stu1.buzhushouru);
			System.out.println("小李的总收入为：" + Stu2.buzhushouru);
			System.out.println("小赵的总收入为：" + Stu3.buzhushouru);
			double r4 = Yichang.avg(Stu1.buzhushouru);
			System.out.println("小张税后的收入为：" + r4);
			double r5 = Yichang.avg(Stu2.buzhushouru);
			System.out.println("小李税后的收入为：" + r5);
			double r6 = Yichang.avg(Stu3.buzhushouru);
			System.out.println("小赵税后的收入为：" + r6);
		}catch(Exception e) {
			System.out.println(e);
		}
		
	}
	
} 